function validateToSubmit(){
	var username = $('#userName').val();
	var gpques = $('#gpQues').val();
	var gpansw = $('#gpAnsw').val();
	var form = $('#getPassword');
	var reg = /^\s+|\s+$/g;
	username = username.replace(reg,"");
	gpansw = gpansw.replace(reg,"");
	var isOK = 0;
	if(username!=""){
		isOK++;
		$('#span_username').text("");
	}else{
		$('#span_username').text("账号不能为空");
	}
	if(gpques!=""){
		isOK++;
		$('#span_gpQues').text("");
	}else{
		$('#span_gpQues').text("请选择密码提示问题");
	}
	if(gpansw!=""){
		isOK++;
		$('#span_gpAnsw').text("");
	}else{
		$('#span_gpAnsw').text("密码提示答案不能为空");
	}
	if(isOK==3){
		form.submit();
	}
}